package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "service-ucenter",fallback = UcenterFileDegradeFeignClient.class)//出错调用兜底方法
@Component
public interface UcenterClient {
    //根据用户id查找用户
    @GetMapping("/eduucenter/ucenter-member/getUserInfoOrder/{id}")
    public R getUserInfoOrder(@PathVariable("id") String id);
}
